package pet;
abstract class pet {
    private int no;
    private String breed;
    private String variety;
    private int price;
    private int number;
    public String toString(){
    	return "，编号:"+no+"，品种:"+variety+"，单价:"+price+"，数量:"+number;
    }
    public void setNo(int no){
    	this.no=no;
    }
    public void setVariety(String variety){
    	this.variety=variety;
    }
    public void setPrice(int price){
    	this.price=price;
    }
    public void setNumber(int number){
    	this.number=number;
    }
    public int getNo(){
    	return no;
    }
    public String variety(){
    	return variety;
    }
    public int price(){
    	return price;
    }
    public int number(){
    	return price;
    }
    public abstract void print();
}
